//
//  MainViewController.m
//  SMSystemMobile
//
//  Created by hzbj on 15/11/17.
//  Copyright © 2015年 hzbj. All rights reserved.
//

#import "MainViewController.h"

#import <SMS_SDK/SMSSDK.h>


@interface MainViewController ()
@property (nonatomic, weak) UIButton * registerButton;


@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    UIButton * registerButton = [UIButton buttonWithType:UIButtonTypeCustom];
    registerButton.frame = CGRectMake(100, 100, 80, 80);
    [registerButton addTarget:self action:@selector(selectActionRegister) forControlEvents:UIControlEventTouchUpInside];
    [registerButton setBackgroundColor:[UIColor redColor]];
    [self.view addSubview:registerButton];
    self.registerButton = registerButton;
    
    
}

- (void)selectActionRegister {
    
    //RegViewController* reg = [[RegViewController alloc] init];
//    [self presentViewController:reg animated:YES completion:^{
//        
//    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
